<div class="goods-status-class">

    @if ($value == 1)
        <button type="button" class="btn btn-link">上架</button>
    @else
        <button type="button" class="btn btn-link">下架</button>
    @endif



</div>

<style>
    .goods-status-class {
        display: flex;
        align-content: center;
        flex-direction: column;
    }
</style>

<script init=".my-class">
</script>
